package com.yanq.liancar.adapter;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/10/31  11:06
 *  @描述       ${TODO}
 */


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.RescueOrderBean;

import java.util.List;

public class RescueOrderAdapter extends BaseQuickAdapter<RescueOrderBean.DataBean.ListBean,BaseViewHolder> {
    public RescueOrderAdapter(int layoutResId, @Nullable List<RescueOrderBean.DataBean.ListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RescueOrderBean.DataBean.ListBean item) {
            helper.setText(R.id.tv_rescueName,item.getRescue())
                    .setText(R.id.tv_rescueTime,item.getCreate_time())
                    .setText(R.id.tv_place,item.getRescue_address())
                    .setText(R.id.tv_reason,item.getRescue_result())
                    .setText(R.id.tv_road,item.getRoad_condition());

    }
}
